// 全局覆盖 Element Plus Dropdown 样式
// 这是唯一正确的、全局生效的方案

.el-dropdown__popper {
    // --- 基础样式 ---
    background: var(--select-dropdown-bg, var(--bg-color-secondary)) !important;
    border: 1px solid var(--select-dropdown-border-color, var(--border-color)) !important;
    border-radius: var(--border-radius-base) !important;
    box-shadow: var(--box-shadow-base) !important;
    backdrop-filter: var(--select-dropdown-backdrop-filter, blur(var(--backdrop-blur))) !important;
    padding: 4px 0 !important;
  
    // --- 菜单容器 ---
    .el-dropdown-menu {
      background: transparent !important;
      border: none !important;
      padding: 0 !important;
    }
    
    // --- 箭头 ---
    .el-popper__arrow {
      &::before {
        background: var(--select-dropdown-bg, var(--bg-color-secondary)) !important;
        border-color: var(--select-dropdown-border-color, var(--border-color)) !important;
      }
    }
  }
  
  // 全局覆盖 Element Plus Dropdown Item 样式
  .el-dropdown-menu__item {
    background-color: transparent !important;
    color: var(--text-color) !important;
    font-family: var(--font-family-base) !important;
    transition: all 0.2s ease !important;
    display: flex;
    align-items: center;
  
    // --- 状态 ---
    &:hover:not(.is-disabled),
    &:focus:not(.is-disabled) {
      background-color: var(--axiom-select-dropdown-item-hover-bg) !important;
      color: var(--axiom-select-dropdown-item-hover-color) !important;
    }
    
    &.is-disabled {
      color: var(--disabled-text-color) !important;
      cursor: not-allowed !important;
    }
  
    // --- 分割线 ---
    &--divided {
      border-top-color: var(--border-color) !important;
    }
  }
  
  
  // --- 主题专属样式 ---
  html.theme-cyberpunk,
  html.theme-neon,
  html.theme-rainbow-cyber {
    .el-dropdown__popper {
      background: var(--glass-bg) !important;
      border: 1px solid var(--glass-border) !important;
      box-shadow: var(--secondary-glow) !important;
  
      .el-popper__arrow::before {
          background: var(--glass-bg) !important;
          border-color: var(--glass-border) !important;
      }
    }
  }